package login.User;

import java.sql.SQLException;

public class UserService {
    private  UserDao dao;
    public boolean login(String username,String psw){
        User user=UserDao.login(username,psw);
        if(user!=null){
            return true;
        }
        return false;
    }
    public void register(User user) throws SQLException {
        dao.register(user);
    }
}
